package com.sxt.springcloud.opd;


import com.sxt.opd.vo.GuahaoVo;
import com.sxt.springcloud.opd.fallback.GuahaoClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-OPD",fallbackFactory = GuahaoClientFallbackService.class)
@RequestMapping("/p/guahao")
public interface GuahaoClientService {

    /**
     * 查询
     */
    @RequestMapping("loadAllGuahao")
     DataGridView loadAllGuahao(@RequestBody GuahaoVo guahaoVo) ;
    /**
     * 添加
     */
    @RequestMapping("addGuahao")
     ResultObj addGuahao(@RequestBody GuahaoVo guahaoVo, @RequestParam("userName") String userName);
    /**
     * 修改
     */
    @RequestMapping("updateGuahao")
     ResultObj updateGuahao(@RequestBody GuahaoVo guahaoVo);
    /**
     * 删除
     */
    @RequestMapping("deleteGuahao")
     ResultObj deleteGuahao(@RequestParam("id")Integer id);
}
